const fs = require('fs');
const http = require('http')

http.createServer(function(req,res){
// console.log(req.url);
if(req.url === '/favicon.ico') {
res.writeHead(200)
res.end()
return
}
res.writeHead(200)
// console.log(req.url);
// res.end()
fs.createReadStream(__dirname + '/index.html').pipe(res)
})
.listen(3000) 